package day16.tcp的练习;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class ClientDemo {
    public static void main(String[] args) throws IOException {
        Socket s=new Socket("127.0.0.1",10001);
        OutputStream os=s.getOutputStream();
        os.write("hello,tcp,我来了".getBytes());
        s.close();
    }
}
